package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.ArticleEntity;
import com.shishuo.cms.vo.ArticleEntityVo;
@Repository
public interface ArticleDao extends IBaseDAO<ArticleEntity, Long>
{
	public List<ArticleEntityVo> getAllListVo(@Param("offset") long offset,
			@Param("rows") long rows,@Param("classId") long classId) throws DataAccessException;
	public int getAllListVoCount(@Param("classId") long classId) throws DataAccessException;
	public ArticleEntityVo getVoById(@Param("articleId") long articleId);
	public List<ArticleEntityVo> getTopVoByAliasName(@Param("topCount") int topCount,@Param("aliasName") String aliasName);
}
